<?php
$log = "";
if (isset($_POST["register"], $_POST["bn"], $_POST["pw"])) {
	$registrationmanager = new registrationmanager();
	$registrationmanager->save_ip("ip_adress");
	$registrationmanager->register();
	$log = $registrationmanager->log->get_log();
}
$form = new form();
$form->display_header(array("id" => "form_login_header"), "Registration");
$form -> create_registration_form_in_table(array("class" => "table_center"), "index.php?page=register");
echo $log;
?>